<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<!-- <script src='/Public/jquery.min.js'></script> -->
  <script src="https://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
  
	<script src='/Public/foundation/js/foundation.min.js'></script>
	<link rel="stylesheet" href="/Public/foundation/css/foundation.min.css">
  <script src='/Public/jquery.cityselect.js'></script>
  <script src='/Public/jquery.datetimepicker.full.js'></script>
  <link rel="stylesheet" href="/Public/jquery.datetimepicker.css">
   <script src="http://cdn.static.runoob.com/libs/foundation/5.5.3/js/vendor/modernizr.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<nav class="top-bar" data-topbar>
  <ul class="title-area">
    <li class="name">
      <h1><a href="#">后台管理</a></h1>
    </li>
  </ul>

  <section class="top-bar-section">
    <ul class="right">
      <li><a href=""><?php echo (session('name')); ?></a></li>
      <li><a href="<?php echo U('Login/doLogout');?>">退出</a></li>
    </ul>
  </section>
</nav>

<div class="small-2 columns">
<ul class="side-nav">
 <?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U($vo['url']);?>" target='<?php echo ($vo["target"]?"_blank":null); ?>'><?php echo ($vo["mname"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
</div>
<div class="small-10 columns">

<form action="<?php echo doAddstudent;?>" method='post' enctype="multipart/form-data" id="zz" >
<table>
<tr>
	<td>
		<table>
				<tr>
						<td>角色</td>
						<td>
						<select name="role" id="">
						<?php if(is_array($role)): $i = 0; $__LIST__ = $role;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["role_id"]); ?>"><?php echo ($vo["role_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
						</select>
						</td>
				</tr>
					<tr>
						<td>姓名</td>
						<td><input type="text" name="sname" id="sname" required minlength="2"></td>
					</tr>
					<tr>
						<td>年龄</td>
						<td><input type="text" name="age" id="age" range=[15,50] required></td>
					</tr>
					<tr>
						<td>性别</td>
						<td>
						<select name="sex" id="sex">
						<?php if(is_array($sex)): $i = 0; $__LIST__ = $sex;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["val"]); ?>"><?php echo ($vo["val"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
						</select>
						</td>
					</tr>
					<tr>
						<td>密码</td>
						<td><input type="password" name="pwd"></td>
					</tr>
					<tr>
						<td>昵称</td>
						<td><input type="text" name="nick" id="nick" maxlength="5" required></td>
					</tr>
					<tr>
						<td>手机</td>
						<td><input type="text" name="tel" required></td>
					</tr>
					<tr>
						<td>备用手机</td>
						<td><input type="text" name="btel"></td>
					</tr>
					<tr>
						<td>固话</td>
						<td><input type="text" name="ftel"></td>
					</tr>
					<tr>
						<td>头像</td>
						<td><input type="file" name="photo"></td>
					</tr>
					<tr>
						<td>锁定</td>
						<td><input type="text" name="lock"></td>
					</tr>
					<tr>
						<td>学期</td>
						<td>
						<select name="term_id" id='term_no'>
						<?php if(is_array($term_no)): $i = 0; $__LIST__ = $term_no;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["val"]); ?>"><?php echo ($vo["val"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
						</select>
						</td>
					</tr>
					<tr>
						<td>身份证</td>
						<td><input type="text" name="id_card" id="id_card" class="idCard" rangelength=[15,18] required></td>
					</tr>
		</table>
	</td>
	<td>
		<table>		
							<tr>
					<td>邮箱</td>
					<td><input type="text" name="email" required></td>
				</tr>
				<tr>
					<td>家庭地址</td>
					<td>
						<div id='city'>
						<select name="home_prov" id="home_prov" class='prov'></select>
						<select name="home_city" id="home_city" class='city'></select>
						<select name="home_dist" id="home_dist" class='dist'></select>
						<input type="text" name="home_addr">
						</div>
					</td>
				</tr>
				<tr>
					<td>现居地</td>
					<td>
					<div id='city1'>
						<select name="live_prov" id="home_prov" class='prov'></select>
						<select name="live_city" id="home_city" class='city'></select>
						<select name="live_dist" id="home_dist" class='dist'></select>
						<input type="text" name="live_addr">
						</div>
				    </td>
				</tr>
				<tr>
					<td>QQ</td>
					<td><input type="text" name="qq"></td>
				</tr>
				<tr>
					<td>毕业学院</td>
					<td><input type="text" name="school"></td>
				</tr>
				<tr>
					<td>学历</td>
					<td>
						<select name="education" id="education">
						<?php if(is_array($education)): $i = 0; $__LIST__ = $education;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["val"]); ?>"><?php echo ($vo["val"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
						</select>
					
					</td>
				</tr>
				<tr>
					<td>毕业时间</td>
					<!-- <td><input type="text" name="leave_time"></td> -->
					<!-- <div id="console" style="background-color:#fff;color:red">sdfdsfsdf</div> -->
					<td><input type="text" name='leave_time' id="datetimepicker3"/></td>

				</tr>
				<tr>
					<td>专业</td>
					<td><input type="text" name="major"></td>
				</tr>
				<tr>
					<td>从何处知道我</td>
					<td><input type="text" name="know_program"></td>
				</tr>
				<tr>
					<td>PHP知道多少</td>
					<td><input type="text" name="try_php"></td>
				</tr>
				<tr>
					<td>学习方式</td>
					<td><input type="text" name="learn_way"></td>
				</tr>
				<tr>
					<td>学习时间</td>
					<td><input type="text" name="learn_time"></td>
				</tr>
		</table>
	</td>
	</tr>
	</table>
	<input class='button' type="submit" value='提交'>
	</form>
	<script>
	$('#city').citySelect();
	$('#city1').citySelect();
	$('#datetimepicker3').datetimepicker({
	inline:true
});


	</script>
	<script src='/Public/validate/jquery.validate.js'></script>
			<script src='/Public/validate/additional-methods.js'></script>
			<script src='/Public/validate/messages_zh.js'></script>
			<script>
				$("#zz").validate({
				    onfocusout: function(element){
				        $(element).valid();
				    }
				});

</script>







	
	
</div>

</body>
</html>